<?php

declare(strict_types=1);

namespace App\Model\App;

use App\Model\Model;
use App\Traits\Model\App\App as AppTraits;

/**
 * @property int $id 
 * @property int $shop_id 店铺ID
 * @property string $app_id 应用ID
 * @property string $app_secret 应用密钥
 * @property string $app_name 应用名称
 * @property string $payment_notify 支付回调路径
 * @property int $status 是否启用|["否","是"]
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class App extends Model
{
    use AppTraits;

    /**
     * The table associated with the model.
     */
    protected ?string $table = 'app';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'shop_id', 'app_id', 'app_secret', 'app_name', 'payment_notify', 'status', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'shop_id' => 'integer', 'status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
